import { applyMiddleware, createStore } from "redux";
import { thunk } from "redux-thunk";
import counterReducer from "./counterReducer";

// 使用 redux-thunk 中间件
const store = createStore(counterReducer, applyMiddleware(thunk));

export default store;
